﻿<script type="text/javascript">
    var da = [];
    var g_code = "$!u";
    if (!checkSystem()) {

        #foreach($ad in $ads)
        #set($link="http://ad.zituibao.com/set")
        #if("$!ad.link"!="") #set($link="$!ad.link") #end
        if ('$!ad.url' && '$!ad.url' != '') da.push({ src: '$!ad.url'+'?t='+new Date(), name: "$!ad.xuhao", link: '$link' });
        #end

        
        if (da.length < 1) da.push({ src: "/AdImages/ztb1.gif"+'?t='+new Date(), name: da.length, link: "http://ad.zituibao.com/set" });
        if (da.length < 2) da.push({ src: "/AdImages/ztb1.gif"+'?t='+new Date(), name: da.length, link: "http://ad.zituibao.com/set" });
        if (da.length < 3) da.push({ src: "/AdImages/ztb1.gif"+'?t='+new Date(), name: da.length, link: "http://ad.zituibao.com/set" });

            var imgs = new IMGS("MonkeyFly_PicPlayer", 1080, 200, da, 3000, '$!u');
        
    }


    function cktitle(aid) {
        try{
            var form = $(".moreform")[0];
            form.action = "/s?u=" + aid;
            form.submit();
        }catch(e){}
    }
</script>